import App from './App'

import base from './base/minix/base.js'

import Vue from 'vue'
import './uni.promisify.adaptor'

// main.js
import uView from '@/uni_modules/uview-ui'

Vue.use(uView)
Vue.mixin(base)

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

//↘️↘️↘️↘️↘️↘️↘️↘️↘️↘️↘️↘️ filters ↙️↙️↙️↙️↙️↙️↙️↙️↙️↙️↙️↙️
Vue.filter('emptyStr', (val, defVal) => {
  return (val && val.toString().trimEnd().length > 0) ? val : (defVal ? defVal : '-');
})
//↗️↗️↗️↗️↗️↗️↗️↗️↗️↗️↗️↗️ filters ↖️↖️↖️↖️↖️↖️↖️↖️↖️↖️↖️↖️